<template>
  <a-locale-provider :locale="locale">
    <div id="app">
      <router-view/>
    </div>
  </a-locale-provider>
</template>

<script>
  import { httpAction, getAction } from '@/api/manage'
  import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN';
export default {
  name: 'App',
  components: {},
  data() {
    return {
      locale: zhCN,
    };
  },
  created () {
      // debugger
    this.fetchData();
  },
  watch: {},
  methods: {
    async fetchData() {
      try {
        const res = await getAction("/system/dataOptionList",{});
        if(res.success){
          sessionStorage.setItem("data_option_list",JSON.stringify(res.data));
        }
        console.log('data_option_list Data:', res.data);
        // 执行其他操作...
      } catch (error) {
        console.error('Error:', error);
      }
    },
  }
}
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  height: 100%;
}
</style>
